import _axios from "@/plugins/axios";


// 文章查询
export function contentList({position, typeId, pageNo = 1, pageSize = 20}) {
    return _axios({
        url: '/content/list',
        method: 'get',
        params: {
            position, // 位置编码
            typeId, // 类型ID
            pageNo,
            pageSize
        }
    })
}

// 文章类型查询
export function contentTypeList({position, pid}) {
    return _axios({
        url: '/content/type/list',
        method: 'get',
        params: {
            position, // 位置编码
            pid // 父级ID
        }
    })
}



// 文章详情
export function contentDetail(data) {
    return _axios({
        url: '/content/detail',
        method: 'get',
        params: data
    })
}


// 获取协议列表
export function agreementList() {
    return _axios({
        url: '/content/protDcl',
        method: 'get'
    })
}
